d98130c0610da23db2dccedd58033a647b0afeff,api/src/com/cloud/api/commands/UpdateAccountCmd.java,UpdateAccountCmd,getEntityOwnerId,#,101

Before Change


    
    @Override
    public long getEntityOwnerId() {
        Account account = _accountService.getActiveAccountByName(getAccountName(), getDomainId());
        if (account != null) {
            return account.getAccountId();
        }

After Change


    
    @Override
    public long getEntityOwnerId() {
        Account account = _entityMgr.findById(Account.class, getId());
        if (account != null) {
            return account.getAccountId();
        }
        account = _accountService.getActiveAccountByName(getAccountName(), getDomainId());
        if (account != null) {
            return account.getAccountId();
        }

        return Account.ACCOUNT_ID_SYSTEM; // no account info given, parent this command to SYSTEM so ERROR events are tracked